﻿@{
    ViewBag.Title = "Home Page";
}

<div class="jumbotron">
    @foreach (var p in ViewBag.Products)
    {
        <div>@p.Name</div>
    }
</div>
<div class="row">
    @foreach (EF.Models.Category c in ViewBag.Categories)
    {
        var prods = c.Products.OrderBy(p=>Guid.NewGuid()).Take(5);
        <div class="col-md-4">
            <fieldset>
                <legend>@c.NameVN</legend>
                <ul>
                    @foreach (var p in prods)
                    {
                        <li>@p.Name</li>
                    }
                </ul>
            </fieldset>
        </div>
    }
</div>